package com.lhz.project.system.service.auth;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lhz.common.page.BaseQueryParam;
import com.lhz.project.system.model.entity.auth.Menu;
import com.lhz.project.system.model.param.auth.MenuParam;
import com.lhz.project.system.model.vo.auth.MenuTreeVo;

import java.util.List;

/**
 * @author LiHuaZhi
 * @since 2020-06-15 22:42:37
 */
public interface MenuService extends IService<Menu> {

    Menu selectByPrimaryKey(Integer id);

    Object listMenu(BaseQueryParam param);

    int insert(MenuParam param);

    int updateByPrimaryKey(MenuParam param);

    void deleteRealByPrimaryKey(Integer id);

    /**
     * 树形结构
     *
     * @return
     */
    List<MenuTreeVo> selectTreeMenu();
}